// gui_sdl_emu.h
#ifndef GUIEMU_SDL_H
#define GUIEMU_SDL_H

#include <os.h>
#include <nCOMMON.h>
#include <nGUI.h>
#include "calc.h"
#include "lcd.h"
#include "guilcd_sdl.h"

unsigned GetTickCount();
//unsigned OnTimer(unsigned interval, void *param);
struct timeval {
	time_t		tv_sec;
	suseconds_t	tv_usec;
};
struct timeval initMSTimer();
int getMSFromTimer(struct timeval startTime);
int getNumOfActiveCalcs();
void gui_draw();
void gui_frame_update();
void printf_d( const char* format, ... );
bool start_main();
void FinalizeButtons();
extern void OnTimer();
#ifndef GUI_SDL_EMU
extern LPCALC lpCalc;
#endif
//wxFrame *mainFrame;

#endif
